<template>
  <div class="navigator">
    <div class="personal-msg">
      <img :src="userlogosrc">
      <span>{{username}}</span>
    </div>
    <ul>
      <a href="#message"><li><i class="fa fa-envelope-o" aria-hidden="true"></i>消息</li></a>
      <a href="#file"><li><i class="fa fa-file-text-o" aria-hidden="true"></i>文件</li></a>
      <a href="#homework"><li><i class="fa fa-pencil" aria-hidden="true"></i>作业</li></a>
      <a href="#discuss"><li><i class="fa fa-comment-o" aria-hidden="true"></i>讨论</li></a>
      <a href="#personal"><li><i class="fa fa-user-o" aria-hidden="true"></i>个人信息</li></a>
      <a><li><i class="fa fa-power-off" aria-hidden="true"></i>退出</li></a>
    </ul>
  </div>
</template>

<script>
const responseData = {
  username: '陈静虹',
  userlogoSrc: '../../static/userlogo.jpg'
}
export default {
  name: 'navigator',
  data: function () {
    return {
      username: responseData.username,
      userlogosrc: responseData.userlogoSrc
    }
  }
}
</script>

<style scoped>
a {
  text-decoration: none;
}
.navigator {
  background-color: #84cf30; /*主题色，先暂时用这个，之后统一修改*/
  width: 230px;
  padding-top: 10px;
}
.personal-msg {
  background-color: white;
  height: 70px;
  padding-right: 20px;
  border: 1px solid #84cf30;
}
.personal-msg img {
  width: 50px;
  height: 50px;
  border: 1px solid #84cf30;
  border-radius: 50%;
  margin: 10px 10px;
}
.personal-msg span {
  color: #84cf30;
  font-size: 20px;
  line-height: 70px;
  vertical-align: top;
}
ul {
  width: 100%;
  padding: 0;
  margin-top: 10px;
}
li {
  list-style-type: none;
  width: 100%;
  height: 50px;
  padding: 5px 15px;
  color: white;
  line-height: 40px;
  font-size: 18px;
  box-sizing: border-box;
  cursor: pointer;
}
li:hover {
  background-color: #68A81E;
}
.fa {
  font-size: 22px;
}
li i {
  margin: 0 20px 0 5px;
}
</style>
